SSML its not working properly, Please Help!
# support
e
The AI assistant is not pronouncing some of the words right, and I am trying to solve that with SSML. I am trying with SSML because I have tried to solve these issues with **Pronunciation dictionaries **but I couldn't solve them, I am new to VAPI! I am using a query tool to get more information from file which is called Knowledge Base. When I am adding the SSML for those keywords inside the System Prompt, for example: Tive Tive Solo 5G for the Tive it works but for the Solo 5G it doesn't, its saying 5 grams. Should I add SSML to the file which acts as a knowledge base or not? How should I solve this? Thank you!
v
Suggestion: For reliable pronunciation of "Tive Solo 5G", use a pronunciation dictionary with a phoneme rule instead of SSML in your system prompt or knowledge base file. Here’s a sample rule to add via the API or dashboard:
Copy code
json
{
  "stringToReplace": "Tive Solo 5G",
  "type": "phoneme",
  "phoneme": "/ˈtaɪv soʊloʊ faɪv dʒi/",
  "alphabet": "ipa"
}
This ensures your assistant always pronounces the phrase correctly, regardless of where it appears in responses or knowledge base content. [See full guide](https://docs.vapi.ai/assistants/pronunciation-dictionaries#configure-your-assistant) Source: - [Pronunciation dictionaries](https://docs.vapi.ai/assistants/pronunciation-dictionaries)
e
Do the pronunciation dictionary works only with elevenLabs or can I do it direclty using the VAPI API?
l
I understand the issue with pronunciation in VAPI. SSML can be added in both the System Prompt and Knowledge Base, but longer phrases like “Solo 5G” can be tricky—numbers often get misread. Using phonetic spelling for numbers and letters usually helps. Pronunciation dictionaries aren’t limited to ElevenLabs; you can use them directly via VAPI too. do you want “Solo 5G” read strictly as letters and numbers or more like the brand name? @Eris Leci
e
The name Solo 5G, is the name of a product. The problem for this is this part: (5G), where the number is being pronounced correctly but the letter its not. For the G the assistant is saying grams!
l
Thanks for clarifying! Since the “5” is fine but the “G” is being read as “grams,” you can use SSML to fix just the letter, like G</phoneme @Eris Leci
e
Nice! Where should I put that line of SSML?, in System prompt or in Knowledge Base file @User
c
You should put the SSML line in the Knowledge Base file. The System prompt is typically used for configuration, while the Knowledge Base is for the content itself. Let me know if you need any more help with this.
e
Hi, I have created a small knowledge base file, just with these specific key words like: Tive, Solo 5G etc, but the pronounciation is not working properly!
I don't have any other idea how to make this work!
Even the first message, where assistant speaks first, its saying it wrong, "Tive". Where is saying like Tiv , where the word rymes with the word "Dive"
3 Views